package tsing.javase.designpattern.factorymethod;

/**
 * @Date 2024/7/16 15:34
 * @Author Tsing
 */
public class Demo {

    public static void main(String[] args) {

    /*    ComputerFactory factory = new LenoveFactory();
        Computer computer = factory.createComputer();
        computer.use();*/

        ComputerFactory factory = new HaseeFactory();
        Computer computer = factory.createComputer();
        computer.use();
    }
}
